<?php

class Core_Form_Admincp_Storage_Ftp extends Nuo_Form
{
	function init()
	{
		$this -> setTitle('FTP Storage System');

		$this -> setDesc('form-desc.FTP Storage System');

		$this -> addChild('text', 'host', array(
			'label' => 'Host',
			'desc' => 'form-desc.FTP Host'
		));

		$this -> addChild('text', 'port', array(
			'label' => 'Port',
			'desc' => 'form-desc.FTP Port'
		));

		$this -> addChild('text', 'timeout', array(
			'label' => 'Connection Timeout',
			'value' => 20,
			'desc' => 'form-desc.FTP Connection Timeout'
		));

		$this -> addChild('yesno', 'pasv', array(
			'label' => 'Passive Mode',
			'value' => '1',
			'desc' => 'form-desc.FTP Passive Mode',
		));

		$this -> addChild('yesno', 'ssl', array(
			'label' => 'Use FTPS',
			'desc' => 'form-desc.FTP Use FTPS',
		));

		$this -> addChild('text', 'username', array(
			'label' => 'FTP Username',
			'desc' => 'form-desc.FTP Username',
		));
		$this -> addChild('text', 'password', array(
			'label' => 'FTP Password',
			'desc' => 'form-desc.FTP Password',
		));
		$this -> addChild('text', 'basePath', array(
			'label' => 'FTP Base Path',
			'desc' => 'form-desc.FTP Base Path',
		));

		$this -> addChild('text', 'baseUrl', array(
			'label' => 'FTP Base Url',
			'desc' => 'This is the base URL used for generating the file URLs. '
		));

		$this -> addChild('yesno', 'is_storable', array(
			'label' => 'Is Enabled',
			'desc' => 'form-desc.FTP Enabled',
		));

		$this -> addChild('yesno', 'is_default', array(
			'label' => 'Is Default',
			'desc' => 'form-desc.FTP Default',
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');

	}

}
